<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <iframe src="http://101.201.232.254/questions-random/#/main" height="500" width="500"></iframe>
</body>
<script>


    function axios(option) {
        alert(num);
var  num  =10;
        return new Promise((resolve) => {
            let xhr = new XMLHttpRequest();
            xhr.open(option.method, option.url);
            xhr.send();
            xhr.onreadystatechange = function () {
                if (xhr.readyState == 4 && xhr.status == 200) {
                    let res = xhr.responseText;
                    resolve(res);

                }
            }
        })
    }
    axios({
        method: "get",
        url: "http://localhost:2345/userinfo"
    }).then(res => {
        console.log(res);
    })

</script>

</html>